<template>
	<view class="theme">
		<navigator v-if="!isMore">
			<view class="item" >
				<view class="pic">
					<image src="../../common/images/preview_small.webp" mode="aspectFill" ></image>
				</view>
				<view class="text">2月前更新</view>
				<view class="type">可爱萌宠</view>
			</view>
		</navigator>
		
		
		<navigator v-else>
			<view class="item isMore" >
				<view class="pic">
					<image src="../../common/images/more.jpg" mode="aspectFill" ></image>
				</view>
				<view class="mask">
					<uni-icons type="more" size="30" color="#fdfdfd"></uni-icons>
					<view>更多</view>
				</view>
			</view>
		</navigator>
		
	</view>
</template>

<script setup>
defineProps({
	isMore:{
		type:Boolean,
		default:false
	}
})
</script>

<style lang="scss">
		
	.item {
		width: 222rpx;
		height: 340rpx;
		position: relative;
		border-radius: 8rpx;
		overflow: hidden;
		.pic {
			width: 100%;
			height: 100%;
			image {
				width: 100%;
				height: 100%;
			}
		}
		.text {
			position: absolute;
			width: 105rpx;
			height: 33rpx;
			background-color: #c36b49;
			border-bottom-right-radius: 20rpx;
			left: 0;
			top: 0;
			font-size: 20rpx;
			display: flex;
			align-items: center;
			color: #fff;
			padding:0 0 0 25rpx;
			transform: scale(0.8);
			transform-origin: left top;
			
			&:before {
				content: "";
				position: absolute;
				left: 10rpx;
				top: 50%;
				width: 10rpx;
				height: 10rpx;
				border-radius: 10rpx;
				transform: translateY(-50%);
				background-color: #fff;
			}
		}
	
		.type {
			width: 100%;
			height: 70rpx;
			background-color: rgba(0,0,0,0.2);
			position: absolute;
			bottom:0 ;
			left: 0;
			display: flex;
			align-items: center;
			justify-content: center;
			color: #fff;
			backdrop-filter: blur(20rpx);
			font-size: 30rpx;
		}
	}
		
	.item.isMore {
		 position: relative;
		.mask {
			position: absolute;
			left: 0;
			top: 0;
			width: 100%;
			height: 100%;
			background-color: rgba(0,0,0,0.2);
			backdrop-filter: blur(20rpx);
			display: flex;
			align-items: center;
			justify-content: center;
			flex-direction: column;
			color: #fdfdfd;
			font-size: 30rpx;
		}
			// display: flex;
			// align-items: center;
			// justify-content: center;
			// color: #fdfdfd;
			// font-size: 30rpx;
			// background-color: rgba(0,0,0,0.2);
			// backdrop-filter: blur(20rpx);
	}
</style>